home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / unix / volume12 / cake / part05 < prev    next >
Encoding:
Internet Message Format  |  1987-10-14  |  2.4 KB

  1. Subject:  v12i011:  Cake, a make replacement, Part05/09
  2. Newsgroups: comp.sources.unix
  3. Sender: sources
  4. Approved: rs@uunet.UU.NET
  5.  
  6. Submitted-by: Zoltan Somogyi <zs@munnari.oz>
  7. Posting-number: Volume 12, Issue 11
  8. Archive-name: cake/part05
  9.  
  10. #! /bin/sh
  11. # This is a shell archive, meaning:
  12. # 1. Remove everything above the #! /bin/sh line.
  13. # 2. Save the resulting text in a file.
  14. # 3. Execute the file with /bin/sh (not csh) to create:
  15. #    README
  16. #    diff
  17. # This archive created: Wed Oct 14 20:41:51 1987
  18. export PATH; PATH=/bin:/usr/bin:$PATH
  19. echo mkdir Lex
  20. mkdir Lex
  21. echo cd Lex
  22. cd Lex
  23. echo shar: "extracting 'README'" '(897 characters)'
  24. if test -f 'README'
  25. then
  26.     echo shar: "will not over-write existing file 'README'"
  27. else
  28. sed 's/^X//' << \SHAR_EOF > 'README'
  29. XThis directory contains a diff for a modified version of the lex driver
  30. X(ncform). It is not absolutely necessary to cake: the only difference
  31. Xis in error detection. If you cannot or do not want to install this diff
  32. Xto ncform, (e.g. cause you have an unsymphatetic root or you are worried
  33. Xabout AT&T's copyright on the original ncform, of which this one is a
  34. Xsmall modification), you should keep the calls to and the definition of
  35. Xcheck_actlen in cake_s.l; otherwise you should comment them out.
  36. X
  37. XCatching lex buffer overflows is important. Some cake actions, like
  38. Xmake actions, are very long, but this may not be apparent, as this
  39. Xlength would almost certainly result from macro expansion (a link
  40. Xcommand for a large system can easily reach hundreds of bytes).
  41. XAn overflow like this, if it occurs, leads to core dump, and the bug
  42. Xcan be VERY HARD to track down. I know, I spent a week on it once.
  43. SHAR_EOF
  44. if test 897 -ne "`wc -c < 'README'`"
  45. then
  46.     echo shar: "error transmitting 'README'" '(should have been 897 characters)'
  47. fi
  48. fi
  49. echo shar: "extracting 'diff'" '(297 characters)'
  50. if test -f 'diff'
  51. then
  52.     echo shar: "will not over-write existing file 'diff'"
  53. else
  54. sed 's/^X//' << \SHAR_EOF > 'diff'
  55. XLine 47 contains:
  56. X
  57. X            *yylastch++ = yych = input();
  58. X
  59. XAdd the lines
  60. X
  61. X# ifdef EARLY_CATCH
  62. X            if (yylastch >= yytext+YYLMAX){
  63. X                EARLY_RECOVERY
  64. X                }
  65. X# endif
  66. X
  67. XLine 138 contains:
  68. X
  69. X                yytext[yyleng] = 0;
  70. X
  71. XAdd the lines
  72. X
  73. X# ifdef LATE_CATCH
  74. X                if (yyleng >= YYLMAX){
  75. X                    LATE_RECOVERY
  76. X                    }
  77. X# endif
  78. SHAR_EOF
  79. if test 297 -ne "`wc -c < 'diff'`"
  80. then
  81.     echo shar: "error transmitting 'diff'" '(should have been 297 characters)'
  82. fi
  83. fi
  84. exit 0
  85. #    End of shell archive
  86.